<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted () {
    const iconArr = [
      '//at.alicdn.com/t/font_1823192_9vqrl8fawg.js', // BJSCLOUD
      '//at.alicdn.com/t/font_1919115_489u56o4g6v.js',// 天气
      '//at.alicdn.com/t/font_1924453_63ocloffir6.js'  // 图标
    ]
    for (let i = 0; i < iconArr.length; i++) {
      let script = document.createElement('script')
      script.type = 'text/javascript'
      script.src = 'http:' + iconArr[i]
      document.body.appendChild(script)
    }
  }
}
</script>

<style lang="scss">
body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  outline:none !important;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100%;
  height: 100%;
}
</style>
